package com.xyz.frame.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xyz.frame.bean.dto.MomentResponseDTO;
import com.xyz.frame.bean.model.MomentEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 我的动态表
 * 
 * @author JiangCX
 * @date 2023-09-28 09:29:05
 */
//@Mapper
public interface MomentMapper extends BaseMapper<MomentEntity> {

    IPage<Integer> selectNewestMomentIdPage(IPage<Integer> page);
    List<MomentResponseDTO> selectNewestMomentList(@Param("momentIdList")List<Integer> momentIdList, @Param("uid") String uid);

    List<MomentResponseDTO> selectGuestMomentList(@Param("momentIdList")List<Integer> momentIdList, @Param("uid") String uid, @Param("guestUid") String guestUid);

    List<MomentResponseDTO> selectMyMomentList(@Param("momentIdList")List<Integer> momentIdList, @Param("uid") String uid);

    MomentResponseDTO selectMomentsDetail(@Param("uid") String uid, @Param("momentId")Integer momentId);

    void updateCv(@Param("momentId")Integer momentId, @Param("count")Integer count);

    void updateLv(@Param("momentId")Integer momentId, @Param("count")Integer count);

    void updatePv(@Param("momentId")Integer momentId);


}
